<!doctype html>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>重庆旅游--用户注册</title>
<link href="css/layout.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.js"></script>

<script type="text/javascript">
	function isEqualPassword() {
		var username = document.getElementById("username").value;
		var password1 = document.getElementById("password").value;
		var password2 = document.getElementById("password_1").value;
		var email = document.getElementById("email").value;
		var birthday = document.getElementById("birthday").value;
		var tel = document.getElementById("tel").value;
		if (password1 != password2) {
			alert("前后密码不一致，请确认后在提交");
			return false;
		} else if (username.length <=0 || password1.length <= 0 || email.length <= 0 || birthday.length < 0 || tel.length <= 0) {
			alert("填写信息不完整，请确认是否填写完整！");
			return false;
		} else {
			return true;
		}
	}
</script>
</head>
<body>
	<br>
	<link href="css/home_login.css" rel="stylesheet" type="text/css">
	<div class="nc-login-layout">
		<div class="nc-login">
			<div class="nc-login-title">
				<h3>用户注册</h3>
			</div>
			<div class="nc-login-content">
				<form id="register_form" action="UsersRegisterAction!register" method="post"
					onsubmit="return isEqualPassword()" action="http://sc.chinaz.com/">
					<dl>
						<dt>用户名</dt>
						<dd style="min-height: 54px;">
							<input type="text" id="username" name="username" class="text tip" placeholder="请已字母，数字，下划线等组成"
								title="3-20位字符，英文、数字及“_”、“-”组成" /> <label></label>
						</dd>
					</dl>
					<dl>
						<dt>设置密码</dt>
						<dd style="min-height: 54px;">
							<input type="password" id="password" name="password" placeholder="请记住您输入的密码"
								class="text tip" title="6-16位字符，可由英文、数字及标点符号组成" /> <label></label>
						</dd>
					</dl>
					<dl>
						<dt>确认密码</dt>
						<dd style="min-height: 54px;">
							<input type="password" id="password_1" name="password_1" placeholder="请再次输入相同的密码"
								class="text tip" title="请再次输入您的密码" /> <label></label>
						</dd>
					</dl>
					<dl>
						<dt>邮箱</dt>
						<dd style="min-height: 54px;">
							<input type="text" id="email" name="email" class="text tip" placeholder="例如：123@163.com"
								title="请输入常用的邮箱，将用来找回密码、接受订单通知等" /> <label></label>
						</dd>
					</dl>
					<dl>
						<dt>电话号码</dt>
						<dd style="min-height: 54px;">
							<input type="text" id="tel" name="tel" class="text tip" placeholder="例如：18112345678"
								title="请输入您的联系电话" /> <label></label>
						</dd>
					</dl>
					<dl>
						<dt>出生日期</dt>
						<dd style="min-height: 54px;">
							<input type="text" id="birthday" name="birthday" placeholder="例如：2017-01-01" class="text tip"
								title="请输入您的出生日期" /> <label></label>
						</dd>
					</dl>
					<dl>
						<dt>性别</dt>
						&nbsp;&nbsp;&nbsp;
						<dd style="min-height: 54px;">
							<input type="radio" name="sex" value="男" checked>男
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="radio"
								name="sex" value="女">女
						</dd>
					</dl>
					<dl>
						<dt>&nbsp;</dt>
						<dd>
							<input type="submit" name="Submit" value="立即注册" class="submit fl"
								title="立即注册" /> <input name="agree" type="checkbox"
								class="fl mt10 ml10" id="clause" value="1" checked="checked" />
							<span for="clause" class="fl ml5">阅读并同意<a
								href="document-agreement.html" target="_blank" class="agreement"
								title="阅读并同意">服务协议</a></span> <label></label>
						</dd>
					</dl>
					<input type="hidden" value name="ref_url"> <input
						name="nchash" type="hidden" value="206f94ec" />
				</form>
				<div class="clear"></div>
			</div>
			<div class="nc-login-bottom"></div>
		</div>
	</div>
	<div style="text-align: center; clear: both">
		<p>@重庆旅游</p>
		<br>
		<p></p>
	</div>
</body>
</html>
